from __future__ import absolute_import

import os.path
#import glob
import logging
#from os.path import isdir, join
from forest.registry import register_tool
from forest.tool import Tool

logger = logging.getLogger('forest.tools.system.touch')

@register_tool('system.touch')
def touch(fname):

    Tool.SIGNAL_TOOL_START(touch, level=logging.DEBUG, message='Touch: %s' % (fname))

    with open(fname, "w") as _:
        pass
